package com.friend.controller;

import com.friend.model.Plc;
import com.friend.service.PlcService;
import com.friend.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zyc
 * @since 2023-03-17 09:12
 */
@RestController
public class PlcController {
    @Autowired
    private PlcService plcService;

    @GetMapping("/test")
    public Result get(){
        List<Plc> list = plcService.list();
        return Result.ok(list);
    }
}
